package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 图书对象 lib_book
 * 
 * @author wangweibo
 * @date 2022-02-11
 */
public class LibBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long bookId;

    /** 图书编号 */
    private String bookNo;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String name;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String images;

    /** 图书介绍 */
    @Excel(name = "图书介绍")
    private String introduce;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 状态 1.正常  2.停用 */
    @Excel(name = "状态 1.正常  2.停用")
    private Long status;

    /** 借出状态 1未借出 2.已借出 */
    @Excel(name = "借出状态 1未借出 2.已借出")
    private Long loanStatus;

    /** 删除标志：0.代表存在 2.代表删除） */
    private Long delFlag;

    /** 类型id */
    @Excel(name = "类型id")
    private Long typeId;

    /** 类型对象 */
    @Excel(name = "类型id")
    private LibBookType bookType;

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setLoanStatus(Long loanStatus) 
    {
        this.loanStatus = loanStatus;
    }

    public Long getLoanStatus() 
    {
        return loanStatus;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public LibBookType getBookType() {
        return bookType;
    }

    public void setBookType(LibBookType bookType) {
        this.bookType = bookType;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getBookNo() {
        return bookNo;
    }

    public void setBookNo(String bookNo) {
        this.bookNo = bookNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("name", getName())
            .append("images", getImages())
            .append("introduce", getIntroduce())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("loanStatus", getLoanStatus())
            .append("delFlag", getDelFlag())
            .append("typeId", getTypeId())
            .toString();
    }
}
